/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * GuiPrincipal.java
 *
 * Created on 12/11/2011, 21:26:46
 */
package view.gui;

import controller.ControllerRelatorio;
import java.awt.Point;
import javax.swing.JOptionPane;
import model.dominio.SessaoUsuario;
import controller.ControllerUsuario;
import net.sf.jasperreports.engine.JasperPrint;
import net.sf.jasperreports.view.JasperViewer;

/**
 *
 * @author Rodrigo
 * Classe responsável para exibição do menu principal do Sistema.
 * Exibida com funcionalidades apenas após efetuar login.
 */
public class GuiPrincipal extends javax.swing.JFrame {

    /** Creates new form GuiPrincipal */
    /**
     * Construtor da interface gráfica do menu principal.
     */
    public GuiPrincipal() {
        initComponents();
        this.setExtendedState(MAXIMIZED_BOTH);
        efetuarLogoff();


    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        menuPessoas = new javax.swing.JPopupMenu();
        cliente = new javax.swing.JMenu();
        cadastroCliente = new javax.swing.JMenuItem();
        buscarCliente = new javax.swing.JMenuItem();
        funcionario = new javax.swing.JMenu();
        cadastroFuncionario = new javax.swing.JMenuItem();
        buscarFuncionario = new javax.swing.JMenuItem();
        motorista = new javax.swing.JMenu();
        cadastroMotorista = new javax.swing.JMenuItem();
        buscarMotorista = new javax.swing.JMenuItem();
        usuario = new javax.swing.JMenu();
        cadastroUsuario = new javax.swing.JMenuItem();
        buscarUsuario = new javax.swing.JMenuItem();
        menuPerfil = new javax.swing.JMenu();
        criarPerfil = new javax.swing.JMenuItem();
        buscarPerfil = new javax.swing.JMenuItem();
        menuVeiculos = new javax.swing.JPopupMenu();
        tipoVeiculo = new javax.swing.JMenu();
        cadastrarTipo = new javax.swing.JMenuItem();
        buscarTipo = new javax.swing.JMenuItem();
        veiculo = new javax.swing.JMenu();
        cadastroCarro = new javax.swing.JMenuItem();
        buscarCarro = new javax.swing.JMenuItem();
        menuLocacoes = new javax.swing.JPopupMenu();
        cadastroLocacao = new javax.swing.JMenuItem();
        cadastroDevolucao = new javax.swing.JMenuItem();
        menuLogoff = new javax.swing.JPopupMenu();
        trocaUsuario = new javax.swing.JMenuItem();
        sair = new javax.swing.JMenuItem();
        menuRelatorios = new javax.swing.JPopupMenu();
        veiculosRentabilidade = new javax.swing.JMenuItem();
        veiculosLocacoes = new javax.swing.JMenuItem();
        locacoesFechadas = new javax.swing.JMenuItem();
        logUsuario = new javax.swing.JMenuItem();
        painel = new javax.swing.JDesktopPane();
        logo = new javax.swing.JLabel();
        tarefas = new javax.swing.JToolBar();
        pessoas = new javax.swing.JButton();
        veiculos = new javax.swing.JButton();
        locacoes = new javax.swing.JButton();
        relatorios = new javax.swing.JButton();
        logoff = new javax.swing.JButton();

        cliente.setText("Cliente");

        cadastroCliente.setText("Cadastrar");
        cadastroCliente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cadastroClienteActionPerformed(evt);
            }
        });
        cliente.add(cadastroCliente);

        buscarCliente.setText("Buscar");
        buscarCliente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                buscarClienteActionPerformed(evt);
            }
        });
        cliente.add(buscarCliente);

        menuPessoas.add(cliente);

        funcionario.setText("Funcionário");

        cadastroFuncionario.setText("Cadastrar");
        cadastroFuncionario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cadastroFuncionarioActionPerformed(evt);
            }
        });
        funcionario.add(cadastroFuncionario);

        buscarFuncionario.setText("Buscar");
        buscarFuncionario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                buscarFuncionarioActionPerformed(evt);
            }
        });
        funcionario.add(buscarFuncionario);

        menuPessoas.add(funcionario);

        motorista.setText("Motorista");

        cadastroMotorista.setText("Cadastrar");
        cadastroMotorista.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cadastroMotoristaActionPerformed(evt);
            }
        });
        motorista.add(cadastroMotorista);

        buscarMotorista.setText("Buscar");
        buscarMotorista.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                buscarMotoristaActionPerformed(evt);
            }
        });
        motorista.add(buscarMotorista);

        menuPessoas.add(motorista);

        usuario.setText("Usuário do Sistema");

        cadastroUsuario.setText("Cadastrar");
        cadastroUsuario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cadastroUsuarioActionPerformed(evt);
            }
        });
        usuario.add(cadastroUsuario);

        buscarUsuario.setText("Buscar");
        buscarUsuario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                buscarUsuarioActionPerformed(evt);
            }
        });
        usuario.add(buscarUsuario);

        menuPerfil.setText("Perfil");

        criarPerfil.setText("Criar Perfil");
        criarPerfil.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                criarPerfilActionPerformed(evt);
            }
        });
        menuPerfil.add(criarPerfil);

        buscarPerfil.setText("Buscar Perfil");
        buscarPerfil.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                buscarPerfilActionPerformed(evt);
            }
        });
        menuPerfil.add(buscarPerfil);

        usuario.add(menuPerfil);

        menuPessoas.add(usuario);

        tipoVeiculo.setText("Tipo de Veículo");

        cadastrarTipo.setText("Cadastrar");
        cadastrarTipo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cadastrarTipoActionPerformed(evt);
            }
        });
        tipoVeiculo.add(cadastrarTipo);

        buscarTipo.setText("Buscar");
        buscarTipo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                buscarTipoActionPerformed(evt);
            }
        });
        tipoVeiculo.add(buscarTipo);

        menuVeiculos.add(tipoVeiculo);

        veiculo.setText("Veículo");

        cadastroCarro.setText("Cadastrar");
        cadastroCarro.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cadastroCarroActionPerformed(evt);
            }
        });
        veiculo.add(cadastroCarro);

        buscarCarro.setText("Buscar");
        buscarCarro.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                buscarCarroActionPerformed(evt);
            }
        });
        veiculo.add(buscarCarro);

        menuVeiculos.add(veiculo);

        cadastroLocacao.setText("Locação");
        cadastroLocacao.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cadastroLocacaoActionPerformed(evt);
            }
        });
        menuLocacoes.add(cadastroLocacao);

        cadastroDevolucao.setText("Devolução");
        cadastroDevolucao.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cadastroDevolucaoActionPerformed(evt);
            }
        });
        menuLocacoes.add(cadastroDevolucao);

        trocaUsuario.setText("Trocar Usuário");
        trocaUsuario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                trocaUsuarioActionPerformed(evt);
            }
        });
        menuLogoff.add(trocaUsuario);

        sair.setText("Sair");
        sair.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                sairActionPerformed(evt);
            }
        });
        menuLogoff.add(sair);

        veiculosRentabilidade.setText("Veiculos (Rentabilidade)");
        veiculosRentabilidade.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                veiculosRentabilidadeActionPerformed(evt);
            }
        });
        menuRelatorios.add(veiculosRentabilidade);

        veiculosLocacoes.setText("Veiculos (Nº de Locações)");
        veiculosLocacoes.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                veiculosLocacoesActionPerformed(evt);
            }
        });
        menuRelatorios.add(veiculosLocacoes);

        locacoesFechadas.setText("Locações por periodo");
        locacoesFechadas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                locacoesFechadasActionPerformed(evt);
            }
        });
        menuRelatorios.add(locacoesFechadas);

        logUsuario.setText("Ações de Usuário");
        logUsuario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                logUsuarioActionPerformed(evt);
            }
        });
        menuRelatorios.add(logUsuario);

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Locarrão - Rent a Car");
        addComponentListener(new java.awt.event.ComponentAdapter() {
            public void componentResized(java.awt.event.ComponentEvent evt) {
                formComponentResized(evt);
            }
        });
        getContentPane().setLayout(null);

        logo.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        logo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/view/imagens/logo_120.png"))); // NOI18N
        logo.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);
        logo.setBounds(0, 0, 570, 520);
        painel.add(logo, javax.swing.JLayeredPane.DEFAULT_LAYER);

        getContentPane().add(painel);
        painel.setBounds(0, 60, 570, 520);

        tarefas.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        tarefas.setFloatable(false);
        tarefas.setRollover(true);
        tarefas.setEnabled(false);

        pessoas.setIcon(new javax.swing.ImageIcon(getClass().getResource("/view/imagens/user.png"))); // NOI18N
        pessoas.setFocusable(false);
        pessoas.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        pessoas.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        pessoas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                pessoasActionPerformed(evt);
            }
        });
        tarefas.add(pessoas);

        veiculos.setIcon(new javax.swing.ImageIcon(getClass().getResource("/view/imagens/carro.png"))); // NOI18N
        veiculos.setFocusable(false);
        veiculos.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        veiculos.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        veiculos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                veiculosActionPerformed(evt);
            }
        });
        tarefas.add(veiculos);

        locacoes.setIcon(new javax.swing.ImageIcon(getClass().getResource("/view/imagens/rent-a-car-icon.png"))); // NOI18N
        locacoes.setFocusable(false);
        locacoes.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        locacoes.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        locacoes.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                locacoesActionPerformed(evt);
            }
        });
        tarefas.add(locacoes);

        relatorios.setIcon(new javax.swing.ImageIcon(getClass().getResource("/view/imagens/report-icon.png"))); // NOI18N
        relatorios.setFocusable(false);
        relatorios.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        relatorios.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        relatorios.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                relatoriosActionPerformed(evt);
            }
        });
        tarefas.add(relatorios);

        logoff.setIcon(new javax.swing.ImageIcon(getClass().getResource("/view/imagens/Button-Log-Off-icon.png"))); // NOI18N
        logoff.setFocusable(false);
        logoff.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        logoff.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        logoff.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                logoffActionPerformed(evt);
            }
        });
        tarefas.add(logoff);

        getContentPane().add(tarefas);
        tarefas.setBounds(0, 0, 575, 60);

        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        setBounds((screenSize.width-591)/2, (screenSize.height-620)/2, 591, 620);
    }// </editor-fold>//GEN-END:initComponents

    private void buscarClienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buscarClienteActionPerformed
        addJanela(new GuiBuscarCliente(2));
    }//GEN-LAST:event_buscarClienteActionPerformed

    private void cadastroClienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cadastroClienteActionPerformed
        addJanela(new GuiDadosCliente());
    }//GEN-LAST:event_cadastroClienteActionPerformed

    private void cadastroFuncionarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cadastroFuncionarioActionPerformed
        addJanela(new GuiDadosFuncionario());
    }//GEN-LAST:event_cadastroFuncionarioActionPerformed

    private void buscarFuncionarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buscarFuncionarioActionPerformed
        addJanela(new GuiBuscarFuncionario());
    }//GEN-LAST:event_buscarFuncionarioActionPerformed

    private void cadastroMotoristaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cadastroMotoristaActionPerformed
        addJanela(new GuiDadosMotorista());
    }//GEN-LAST:event_cadastroMotoristaActionPerformed

    private void buscarMotoristaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buscarMotoristaActionPerformed
        addJanela(new GuiBuscarMotorista(WIDTH));
    }//GEN-LAST:event_buscarMotoristaActionPerformed

    private void cadastroUsuarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cadastroUsuarioActionPerformed
        ControllerUsuario.cadastrarUsuario();
    }//GEN-LAST:event_cadastroUsuarioActionPerformed

    private void buscarUsuarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buscarUsuarioActionPerformed
        addJanela(new GuiBuscarFuncionario());
    }//GEN-LAST:event_buscarUsuarioActionPerformed

    private void pessoasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_pessoasActionPerformed
        // TODO add your handling code here:
        menuPessoas.show(pessoas, 3, 52);
    }//GEN-LAST:event_pessoasActionPerformed

    private void cadastrarTipoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cadastrarTipoActionPerformed
        addJanela(new GuiDadosTipoVeiculo());
    }//GEN-LAST:event_cadastrarTipoActionPerformed

    private void buscarTipoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buscarTipoActionPerformed
        addJanela(new GuiBuscarTipoVeiculo());
    }//GEN-LAST:event_buscarTipoActionPerformed

    private void cadastroCarroActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cadastroCarroActionPerformed
         addJanela(new GuiDadosVeiculo());
    }//GEN-LAST:event_cadastroCarroActionPerformed

    private void buscarCarroActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buscarCarroActionPerformed
        addJanela(new GuiBuscarVeiculo(2));
    }//GEN-LAST:event_buscarCarroActionPerformed

    private void formComponentResized(java.awt.event.ComponentEvent evt) {//GEN-FIRST:event_formComponentResized
        // TODO add your handling code here:
        tarefas.setSize(this.getWidth(), tarefas.getHeight());
        painel.setSize(this.getWidth(), this.getHeight() - 60);
        logo.setSize(this.getWidth(), this.getHeight() - 60);
    }//GEN-LAST:event_formComponentResized

    private void veiculosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_veiculosActionPerformed
        // TODO add your handling code here:
        Point x = veiculos.getLocation();
        menuVeiculos.show(veiculos, 3, 52);
    }//GEN-LAST:event_veiculosActionPerformed

    private void locacoesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_locacoesActionPerformed
        // TODO add your handling code here:
        menuLocacoes.show(locacoes, 3, 52);
    }//GEN-LAST:event_locacoesActionPerformed

    private void cadastroLocacaoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cadastroLocacaoActionPerformed
        // TODO add your handling code here:
        addJanela(new GuiDadosLocacao());

    }//GEN-LAST:event_cadastroLocacaoActionPerformed

    private void logoffActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_logoffActionPerformed
        menuLogoff.show(logoff, 3, 52);
    }//GEN-LAST:event_logoffActionPerformed

    private void sairActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_sairActionPerformed

        if (JOptionPane.showConfirmDialog(this, "Tem certeza que deseja sair do sistema?", "Confirmação", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE) == 0) {
            System.exit(1);
        }
    }//GEN-LAST:event_sairActionPerformed

    private void trocaUsuarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_trocaUsuarioActionPerformed
        if (JOptionPane.showConfirmDialog(this, "Tem certeza que deseja fazer logoff do sistema?", "Confirmação", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE) == 0) {
            efetuarLogoff();
            ControllerUsuario.janelaLoginUsuario();
        }
    }//GEN-LAST:event_trocaUsuarioActionPerformed

    private void criarPerfilActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_criarPerfilActionPerformed
        // TODO add your handling code here:
        addJanela(new GuiDadosPerfil());
    }//GEN-LAST:event_criarPerfilActionPerformed

    private void buscarPerfilActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buscarPerfilActionPerformed
        addJanela(new GuiBuscarPerfil());
    }//GEN-LAST:event_buscarPerfilActionPerformed

    private void cadastroDevolucaoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cadastroDevolucaoActionPerformed
        addJanela(new GuiBuscarVeiculo(3));
    }//GEN-LAST:event_cadastroDevolucaoActionPerformed

    private void relatoriosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_relatoriosActionPerformed
        menuRelatorios.show(relatorios, 3, 52);
    }//GEN-LAST:event_relatoriosActionPerformed

    private void veiculosRentabilidadeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_veiculosRentabilidadeActionPerformed
        JasperPrint relat = ControllerRelatorio.relatorioVeiculosRentabilidade();
        JasperViewer.viewReport(relat, false);
    }//GEN-LAST:event_veiculosRentabilidadeActionPerformed

    private void veiculosLocacoesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_veiculosLocacoesActionPerformed
        JasperPrint relat = ControllerRelatorio.relatorioVeiculosLocacoes();
        JasperViewer.viewReport(relat, false);
    }//GEN-LAST:event_veiculosLocacoesActionPerformed

    private void locacoesFechadasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_locacoesFechadasActionPerformed
        addJanela(new GuiBuscarLocacoesRelatorio());
    }//GEN-LAST:event_locacoesFechadasActionPerformed

    private void logUsuarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_logUsuarioActionPerformed
        addJanela(new GuiBuscarUsuarioRelatorio());
    }//GEN-LAST:event_logUsuarioActionPerformed

    /**
     * Método responsável por exibir janela interna ao menu principal.
     * Tais janelas são abertas com cliques no painel principal, para execução das funcionalidades do Sistema.
     * @param j 
     * Frame interno recebido das funcionalidades, para geração da janela interna destas.
     */
    public static void addJanela(JInternalFramePermissao j) {
        if (j.getPermissao() == 1 || SessaoUsuario.verificaPermissao(j.getPermissao())) {
            painel.add(j);
            j.setVisible(true);
        } else {
            JOptionPane.showMessageDialog(null, "Você não possui permissão para acessar esse conteúdo.", "RESTRIÇÃO", JOptionPane.WARNING_MESSAGE);
        }
    }

    /**
     * Método que ativa funcionalidades, executado após o sign in do Usuário no Sistema.
     */
    public static void efetuarLogin() {
        for (int i = 0; i < tarefas.getComponentCount(); i++) {
            tarefas.getComponent(i).setEnabled(true);
        }
    }

    /**
     * Método que desativa funcionalidades, executado após o sign off do Usuário no Sistema.
     */
    public static void efetuarLogoff() {
        for (int i = 0; i < tarefas.getComponentCount(); i++) {
            tarefas.getComponent(i).setEnabled(false);
        }
        SessaoUsuario.finalizaSessao();

    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JMenuItem buscarCarro;
    private javax.swing.JMenuItem buscarCliente;
    private javax.swing.JMenuItem buscarFuncionario;
    private javax.swing.JMenuItem buscarMotorista;
    private javax.swing.JMenuItem buscarPerfil;
    private javax.swing.JMenuItem buscarTipo;
    private javax.swing.JMenuItem buscarUsuario;
    private javax.swing.JMenuItem cadastrarTipo;
    private javax.swing.JMenuItem cadastroCarro;
    private javax.swing.JMenuItem cadastroCliente;
    private javax.swing.JMenuItem cadastroDevolucao;
    private javax.swing.JMenuItem cadastroFuncionario;
    private javax.swing.JMenuItem cadastroLocacao;
    private javax.swing.JMenuItem cadastroMotorista;
    private javax.swing.JMenuItem cadastroUsuario;
    private javax.swing.JMenu cliente;
    private javax.swing.JMenuItem criarPerfil;
    private javax.swing.JMenu funcionario;
    private javax.swing.JButton locacoes;
    private javax.swing.JMenuItem locacoesFechadas;
    private javax.swing.JMenuItem logUsuario;
    private javax.swing.JLabel logo;
    private javax.swing.JButton logoff;
    private javax.swing.JPopupMenu menuLocacoes;
    private javax.swing.JPopupMenu menuLogoff;
    private javax.swing.JMenu menuPerfil;
    private javax.swing.JPopupMenu menuPessoas;
    private javax.swing.JPopupMenu menuRelatorios;
    private javax.swing.JPopupMenu menuVeiculos;
    private javax.swing.JMenu motorista;
    private static javax.swing.JDesktopPane painel;
    private javax.swing.JButton pessoas;
    private javax.swing.JButton relatorios;
    private javax.swing.JMenuItem sair;
    private static javax.swing.JToolBar tarefas;
    private javax.swing.JMenu tipoVeiculo;
    private javax.swing.JMenuItem trocaUsuario;
    private javax.swing.JMenu usuario;
    private javax.swing.JMenu veiculo;
    private javax.swing.JButton veiculos;
    private javax.swing.JMenuItem veiculosLocacoes;
    private javax.swing.JMenuItem veiculosRentabilidade;
    // End of variables declaration//GEN-END:variables
}
